##
## Makefile for asm in /home/vanet_c//proj-kw/asm
## 
## Made by charles-edouard vanet
## Login   <vanet_c@epitech.net>
## 
## Started on  Thu Dec  6 17:46:02 2012 charles-edouard vanet
## Last update Sun Dec 16 02:38:24 2012 
##

NAME	= asm

SRCS	= main.c \
	  compilateur.c \
	  write.c \
	  label.c
##SRCS	= test.c

OBJS	= $(SRCS:.c=.o)

MY	= cd ../../lib/

KORASM	= cd ../../lib_kor_asm/

MY_CC	= gcc -o

LDFLAGS	= -L../../ -lmy -L../../ -lkorasm

CFLAGS	= -g

RM	= rm -f

$(NAME):	libmy libkorasm $(OBJS)
	$(MY_CC) $(NAME) $(OBJS) $(LDFLAGS)

libmy:
	$(MY) && $(MAKE)

libkorasm:
	$(KORASM) && $(MAKE)

all:	$(NAME)

clean:
	$(RM) *~
	$(RM) $(OBJS)
	$(RM) *#
	$(MY) && make clean
	$(KORASM) && make clean

fclean: clean
	$(RM) $(NAME)
	$(MY) && make fclean
	$(KORASM) && make fclean

re:	fclean all
